package only.my.railgunys.weapon;

import only.my.railgunys.bean.Character;
import only.my.railgunys.bean.Weapon;

public class Whiteblind extends Weapon {

    public Whiteblind(int refineLevel) {
        this.atk = 510.0;
        this.subStatValue = 51.7;
        this.refineLevel = refineLevel;
        this.name = "白影剑";
        this.code = 13;
    }

    @Override
    public Character subStatEnhance(Character character) {
        character.addDefense(subStatValue);
        return character;
    }

    @Override
    public Character specialAbility(Character character) {
        double refine = 1 + (refineLevel - 1) * 0.25;

        character.addAtk(6*refine *4);
        character.addDefense(6*refine *4);
        return character;
    }
}
